﻿using EM.OA.DataModel.DBModel;
using EM.OA.WebCommon.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Web;
namespace EM.OA.Portal.Models
{
    public class WFApplyModels : BaseViewModel
    {
        /// <summary>
        /// id
        /// </summary>		
        [Display(Name = "id")]
        public Guid? ApplyID { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>		
        [Display(Name = "申请人")]
        public Guid? ApplyUserID { get; set; }
        /// <summary>
        /// 申请部门
        /// </summary>		
        [Display(Name = "申请部门")]
        public Guid? ApplyDepartmentID { get; set; }
        /// <summary>
        /// 流程ID
        /// </summary>		
        [Display(Name = "申请流程")]
        public Guid? ApplyFlowConfigID { get; set; }
        /// <summary>
        /// 申请内容
        /// </summary>		
        [Display(Name = "申请内容")]
        public string ApplyContent { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>		
        [Display(Name = "审批人")]
        public Guid ApprovalUserID { get; set; }
        /// <summary>
        /// 是否有附件
        /// </summary>		
        [Display(Name = "是否有附件")]
        public bool HaveAttachment { get; set; }
        /// <summary>
        /// 是否短消息提醒
        /// </summary>		
        [Display(Name = "是否短消息提醒")]
        public bool IsWebMessage { get; set; }
        /// <summary>
        /// 是否SMS短信提醒
        /// </summary>		
        [Display(Name = "是否SMS短信提醒")]
        public bool IsSMS { get; set; }
        /// <summary>
        /// 是否邮件提醒
        /// </summary>		
        [Display(Name = "是否邮件提醒")]
        public bool IsEmail { get; set; }
        /// <summary>
        /// 状态
        /// </summary>		
        [Display(Name = "状态")]
        public byte? Status { get; set; }

        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string ApplyUserName { get; set; }

        /// <summary>
        /// 下一步的审批人姓名
        /// </summary>
        public string NextApprovalUserName { get; set; }

        /// <summary>
        /// 下一步的审批人ID
        /// </summary>
        public Guid? NextApprovalUserID { get; set; }

        /// <summary>
        /// 申请部门名称
        /// </summary>
        public string ApplyDepartmentName { get; set; }

        /// <summary>
        /// 申请流程名称
        /// </summary>
        public string ApplyFlowConfigName { get; set; }

        /// <summary>
        /// 流程类型名称
        /// </summary>
        public string FlowKindName { get; set; }

        /// <summary>
        /// 流程类型
        /// </summary>
        public Guid? FlowKind { get; set; }

        /// <summary>
        /// 审批备注
        /// </summary>		
        [Display(Name = "审批意见")]
        public string AprovalRemark { get; set; }

        /// <summary>
        /// 该流程的下一个FlowConfigDetailID
        /// </summary>
        [Display(Name = "该流程的下一个FlowConfigDetailID")]
        public Guid? NextFlowConfigDetailID { get; set; }

        /// <summary>
        /// 该流程当前申请表ID
        /// </summary>
        public Guid? NowApprovalID { get; set; }

        /// <summary>
        /// 处理工作流步骤的时候的状态
        /// </summary>
        public byte? ApprovalStatus { get; set; }

    }
}